/**
 * Copyright 2010 Balaji Thennarangam.
 */
package com.kathez.util.commonutils;

/**
 * Common utility methods used across the application are defined here.
 * 
 * @author Balaji T
 *
 */
public class KathezUtils {

	public static Object nullifyEmpty(Object object){
		if(object != null){
			return object;
		}else{
			return null;
		}	
	}

	public static String nullifyEmpty(String input){
		if(input != null){
			if(input.trim().equals(""))
				return null;
			else
				return input;
		}else{
			return null;
		}
	}
}
